<template>
  <div id="scroll-board">
    <dv-scroll-board :config="config" />
  </div>
</template>

<script>
export default {
  name: "ScrollBoard",
  data() {
    return {
      config: {
        header: ["时间", "灾害事件"],
        data: [
          ["2020-07-20 19:25:00", "洪水灾害1"],
          ["2019-07-02 17:25:00", "洪水灾害2"],
          ["2019-07-03 16:25:00", "洪水灾害3"],
          ["2019-07-04 15:25:00", "洪水灾害4"],
          ["2019-07-05 14:25:00", "洪水灾害5"],
          ["2019-07-05 14:25:00", "洪水灾害6"],
        ],
        index: true,
        columnWidth: [50, 170, 300],
        align: ["center"],
        rowNum: 6,
        headerBGC: "#1981f6",
        headerHeight: 45,
        oddRowBGC: "rgba(0, 44, 81, 0.8)",
        evenRowBGC: "rgba(10, 29, 50, 0.8)",
      },
    };
  },
};
</script>

<style >
#scroll-board {
  width: 30%;
  box-sizing: border-box;
  margin-left: 20px;
  height: 100%;
  overflow: hidden;
}
</style>
